package com.scu.qingshi.start;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author qingshi
 */
@EnableScheduling
@EnableTransactionManagement
@SpringBootApplication
// 扫描所有的bean
@ComponentScan("com.scu.qingshi")
// 扫描dao层的mapper接口类
@MapperScan("com.scu.qingshi.infrastructure.dao.mapper")
public class PlatformApplication {

    public static void main(String[] args) {
        SpringApplication.run(PlatformApplication.class,args);
    }
}
